import { articles } from '@/api/index'
export default {
  state: {
    infolist: []
  },
  mutations: {
    setInfolist (state, value) {
      state.infolist = value
    }

  },
  actions: {
    async getInfolist (context, id) {
      // console.log('getInfolist', 888)
      const res = await articles(id)
      console.log(res, 999)
      context.commit('setInfolist', res.data.data.results)
    }
  },
  getters: {},
  namespaced: true
}
